package com.example.logisticsingle.Config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class SSOConfig {
    /**
     * SSO服务地址
     */
    public static String SSO_SERVER;

    @Value("${sso.server}")
    public void setSSOSERVER(String ssoServer) {
        SSO_SERVER = ssoServer;
    }

    /**
     * 登录页面
     */
    public static String LOGIN_URL;
    @Value("${login.url}")
    public void setLOGINURL(String loginURL) {
        LOGIN_URL = loginURL;
    }
    /**
     * SSO登出路径
     */
    public static String SSO_LOGOUT_PATH;
    @Value("${sso.server.logout}")
    public static void setSSOLOGOUTPATH(String ssoLogoutPath) {
        SSO_LOGOUT_PATH = ssoLogoutPath;
    }

    /**
     * SSO登入路路径
     */
    public static String SSO_LOGIN_PATH;
    @Value("${sso.server.login}")
    public static void setSSOLOGINPATH(String ssoLoginPath) {
        SSO_LOGIN_PATH = ssoLoginPath;
    }





}
